package com.lyw.home

import android.content.Context
import android.widget.TextView
import androidx.lifecycle.ViewModel
import com.lu.library.ext.readFromAsset
import io.noties.markwon.Markwon

/**
 * Author: luyuanwei
 * Date: 2025/2/10
 * Description: viewmodel
 * Version:
 * Copyright(C):2024-2025
 */
class KonwledgeDetailVm:ViewModel() {



    fun initData(context: Context,fileName:String,textView:TextView){
        var content = context.readFromAsset(fileName)
        Markwon.create(context).setMarkdown(textView,content)
    }
}